package com.zycfc.zsf.boot.common.context;

import com.zycfc.zsf.boot.util.text.*;
import java.util.*;

public class ZsfEnvConstants
{
    public static Map<String, String> data;
    public static String APPLICATION_NAME_KEY;
    public static String PROFILES_ACTIVE_KEY;
    public static String ZSF_ALL_NAMESPACE;
    
    public static void put(final String key, final String value) {
        if (StringUtils.isEmpty(key)) {
            return;
        }
        ZsfEnvConstants.data.put(key, value);
    }
    
    public static String get(final String key) {
        return ZsfEnvConstants.data.get(key);
    }
    
    public static String getApplicationName() {
        return ZsfEnvConstants.data.get(ZsfEnvConstants.APPLICATION_NAME_KEY);
    }
    
    public static String getZsfAllNamespace() {
        return ZsfEnvConstants.data.get(ZsfEnvConstants.ZSF_ALL_NAMESPACE);
    }
    
    public static String getProfilesActive() {
        return ZsfEnvConstants.data.get(ZsfEnvConstants.PROFILES_ACTIVE_KEY);
    }
    
    static {
        ZsfEnvConstants.data = new HashMap<String, String>();
        ZsfEnvConstants.APPLICATION_NAME_KEY = "applicationName";
        ZsfEnvConstants.PROFILES_ACTIVE_KEY = "profilesActive";
        ZsfEnvConstants.ZSF_ALL_NAMESPACE = "profilesActive";
    }
}
